#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int arr[10] = { 1,2,3,4,5,1,2,3,4,6 };
	int i, tmp = 0,pos,ret1=0,ret2=0;
	for (i = 0; i < 10; i++)
	{
		tmp ^= arr[i];
	}
	for (i = 0; i < 32; i++)
	{
		if ((tmp >> i)&1 == 1)
		{
			pos = i;
			break;
		}
	}
	for (i = 0; i < 10; i++)
	{
		if ((arr[i] >> pos)&1 ==1)
		{
			ret1 ^= arr[i];
		}
		else
		{
			ret2 ^= arr[i];
		}
	}
	printf("%d %d", ret1, ret2);
	return 0;
}